package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.wineshop.UserWineShopBuilding;
import com.yanqu.road.entity.wineshop.UserWineShopData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * @author ：zfr
 * @date ：2021/7/6 17:38
 */
public class UserWineShopBusiness {
    public static UserWineShopData getUserWineShopData(long userId) {
        return DaoHelper.getUserWineShopDaoImpl().getUserWineShopData(userId);
    }

    public static boolean addUserWineShopData(UserWineShopData userWineShopData) {
        return DaoHelper.getUserWineShopDaoImpl().add(userWineShopData);
    }

    public static boolean updateUserWineShop(UserWineShopData userWineShopData) {
        return DaoHelper.getUserWineShopDaoImpl().update(userWineShopData);
    }

    public static boolean addUserWineShopBuildingData(UserWineShopBuilding userWineShopBuilding) {
        return DaoHelper.getUserWineShopBuildingDaoImpl().add(userWineShopBuilding);
    }

    public static boolean updateUserWineShopBuildingData(UserWineShopBuilding userWineShopBuilding) {
        return DaoHelper.getUserWineShopBuildingDaoImpl().update(userWineShopBuilding);
    }

    public static Map<Integer, UserWineShopBuilding> getUserWineShopBuildingMap(long userId) {
        return DaoHelper.getUserWineShopBuildingDaoImpl().getUserWineShopBuildingMap(userId);
    }
}
